#ifndef __RS485_
#define __RS485_
#include "stm32f10x.h"
#include "global.h"

typedef struct 
{
	u8 rx_buf[50];
	u8 rx_cnt;
}UART_REV_INFO;


void USART1_RS485_Init(u32 bound);
void USART2_RS485_Init(u32 bound);
void USART3_RS485_Init(u32 bound);

int USART1_SendData(unsigned char *buf, unsigned char len);
int USART2_SendData(unsigned char *buf, unsigned char len);
int USART3_SendData(unsigned char *buf, unsigned char len);
#endif

